<?php #//AJAX PHP PENNY AUCTION v.1.2

#//////////////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 - 2010 Aaron Helmlinger ALL RIGHTS RESERVED  //
#//////////////////////////////////////////////////////////////////
?>



 <? 
       
  $tabid = 2; // Change This Number To Correspond To The Tab You Want Activated
  include "tab_menu.php"; // To Change The Tabs - Modify This File
  $subtabid = "my auctions"; // Change This Variable To Correspond To Tab Sub Menu You Want To Display
  include "tab_submenu.php"; //To Change The Sub Menu - Modify This File
  include "category_menu.php"; //To Change The Category Menu - Modify This File
  $page_title_text = $AUCTION_CHECKOUT_PAGE_TITLE; //Change This Text To The Text That You Want To Show In The Page Title Bar
  $page_title_note = ""; //Change This Text To Display A Note In The Page Title Bar Area
  include "page_title.php"; //To Change The Page Title Look - Modify This File
  ?>            
      
     <? print $tab_menu ?>  <!-- This displays the Tab Menu - Delete It, If You Do Not Want It Show On The Screen  -->
     <? print $tab_submenu ?>  <!-- This displays the Tab Sub Menu - Delete It, If You Do Not Want It Show On The Screen    -->
     <? print $category_menu ?>  <!--  This displays the Category  Menu - Delete It, If You Do Not Want It Show On The Screen  -->
     <? print $page_title_content_box_start; ?>  <!-- This displays the Title Bar And Content Border - Delete It, If You Do Not Want It Show On The Screen  -->
                                                 <!-- You will also need to delete the "$page_title_content_box_stop" below  -->
        
        
        
         <? //> <!----------------------- START CONTENT HERE -------------------------->  ?>
     
      

          
                                   <center>
<span class=BOLDTEXT> <FONT size=+2><? print $item_name; ?></FONT><BR> </SPAN> 
<FONT size=-1 COLOR=#555555>  <? print $item_number; ?></FONT><BR><br> <FONT size=+1 COLOR=#555555>
<? print $AUCTION_CHECKOUT_FINAL_VALUE_FEE; ?>:&nbsp;<? print $currency_symbol; print print_money_nosymbol($price); ?><BR>
<? print $ITEM_PAGE_SHIPPING_HANDLING; ?>:&nbsp;<? print $currency_symbol; print print_money_nosymbol($shipping_fee); ?><BR>
<? 

   if( $tax_state2 == $users_state ) {   
  if (!empty($tax_rate2)) {     
$taxprice1 = ( $price + $shipping_fee ) * $tax_rate_percentage1; $sales_tax_percentage = $tax_rate_percentage1 * 100; $sales_tax_percentage .= "%"; if ( $tax_rate_percentage1 ) { print "State Sales Tax (".$sales_tax_percentage."):&nbsp;".$currency_symbol; print print_money_nosymbol($taxprice1);}  
 if (!empty($nat_tax_rate2)) { 
$taxprice2 = (( $price + $shipping_fee ) * $tax_rate_percentage1) * $nat_tax_rate2 ; $sales_tax_percentage_nat = $nat_tax_rate2 * 100; $sales_tax_percentage_nat .= "%"; if ( $nat_tax_rate2 ) { print "National Sales Tax (".$sales_tax_percentage."):&nbsp;".$currency_symbol; print print_money_nosymbol($taxprice2);}  
}}  
  
      if (empty($tax_rate2)) {     
$taxprice1 = 0;
if ( empty($nat_tax_rate2)) { 
$taxprice2 = 0;
}}  
  } 

<BR><BR>
<FONT size=+1 color=red> <span class=BOLDTEXT> <? print $AUCTION_CHECKOUT_AMOUNT_DUE; ?>: <? print $currency_symbol; $price2 = ($price + $shipping_fee + $taxprice1 + $taxprice2); print print_money_nosymbol($price2); print " ".$currency; ?><BR><BR></SPAN> </FONT>
  
   <? 
  
       if($PHPAUCTION_TESTMODE == "no") {
         // THIS SETTING IS SET IN includes/config.inc.php
        // THIS SHOWS IF PAYPAL TEST MODE IS OFF
        
        ?>
              <form action="https://www.paypal.com/cgi-bin/webscr" method="post">        	
          <? } ?>
    <?    
        // THIS SHOWS IF PAYPAL TEST MODE IS ON
        // YOU NEED TO SETUP A PAYPAL TEST ACCOUNT AT https://developer.paypal.com/ 
             
           if($PHPAUCTION_TESTMODE == "yes") {  

        ?>

        <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
 
  <? } ?>
 
  
						<input type="hidden" name="cmd" value="_xclick">
						<input type="hidden" name="item_name" value="Payment for <? print $SETTINGS['sitename']; ?> Auction: <? print $item_name; ?>">
						<input type="hidden" name="item_number" value="<? print $item_number; ?>">
						<input type="hidden" name="amount" value="<? print round($price2,2); ?>">
						<input type="hidden" name="currency_code" value="<? print $currency; ?>">
					
           <? if($auction_id) { ?>     
          	 <input type="hidden" name="return" value="<?=$SETTINGS['siteurl']?>item.php?id=<? print $auction_id; ?>">
					   <? } ?>
					   
					   <? if(!$auction_id) { ?>     
          	 <input type="hidden" name="return" value="<?=$SETTINGS['siteurl']?>index.php">
					   <? } ?>
          
       <? if($auction_id) { ?>    
          	<input type="hidden" name="cancel_return" value="<?=$SETTINGS['siteurl']?>item.php?id=<? print $auction_id; ?>">
						   <? } ?>
               
               <? if(!$auction_id) { ?>    
          	<input type="hidden" name="cancel_return" value="<?=$SETTINGS['siteurl']?>index.php">
						   <? } ?>          
						   
                                 <? //  <!--------- The Paypal account is the email enter for the first user id#1 -->  ?>
            
        <? 
  
       if($PHPAUCTION_TESTMODE == "no") {
         // THIS SETTING IS SET IN includes/config.inc.php
        // THIS SHOWS IF PAYPAL TEST MODE IS OFF
        
        ?>     
            <input type="hidden" name="business" value="<? print $paypal_email; ?>">
				 <? } ?>
         
       <?  if($PHPAUCTION_TESTMODE == "yes") {  

        ?>  	    <? print $AUCTION_CHECKOUT_TEST_MODE; ?>  <input type="hidden" name="business" value="<? print $TEST_PAYPAL_EMAIL; ?>">  
          	
         	 <? } ?> 	
          
          	<input type="hidden" name="no_shipping" value="1">
						<input type="hidden" name="no_note" value="0">
						
			
            <? 
       if($PHPAUCTION_TESTMODE == "no") {
         // THIS SETTING IS SET IN includes/config.inc.php
        // THIS SHOWS IF PAYPAL TEST MODE IS OFF
        
        ?>     
           <input type="hidden" name="notify_url" value="<?=$SETTINGS['siteurl']?>ipn_auction.php">
				 <? } ?>
         
       <?  if($PHPAUCTION_TESTMODE == "yes") {  

        ?>    <input type="hidden" name="notify_url" value="<?=$SETTINGS['siteurl']?>ipn_auction_testmode.php">  
          	
         	 <? } ?> 	
            			
						
						
						
						
												<input type="submit" name="submit" value=" <? print $AUCTION_CHECKOUT_BUTTON; ?> " class=inputbutton>
					</form>
                                 
                      <? if($auction_id) { ?>   
                                 
                    <FONT size=-1> <span class=BOLDTEXT> <A HREF="item.php?id=<? print $auction_id; ?>"><? print $AUCTION_CHECKOUT_CANCEL_LINK; ?></A></SPAN> </FONT>              
                                 
                         <? } ?>
                         
                              <? if(!$auction_id) { ?>   
                                 
                    <FONT size=-1> <span class=BOLDTEXT> <A HREF="index.php"><? print $AUCTION_CHECKOUT_CANCEL_LINK; ?></A></SPAN> </FONT>              
                                 
                         <? } ?>              
                                              </center>


<P>      <TABLE WIDTH=94% ALIGN=center>
                                               <TR>
                                               <TD>
     <FONT size=-1><CENTER><? print $BUY_BIDS_PAGE_WE_USE_PAYPAL; ?></CENTER>  <BR>   
                                                 </FONT>
                                        
                </TD>
               </TR>
               </TABLE>
   
    
     <TABLE WIDTH=94% ALIGN=center>
                                               <TR>
                                               <TD>
                                               
                                               
                                               <!-- PayPal Logo --><table border="0" cellpadding="0" cellspacing="0" align="center"><tr><td align="center"></td></tr>
<tr><td align="center"><a href="#" onclick="javascript:window.open('https://www.paypal.com/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');"><img  src="https://www.paypal.com/en_US/i/bnr/horizontal_solution_PPeCheck.gif" border="0" alt="Solution Graphics"></a></td></tr></table><!-- PayPal Logo -->
      </TD><TD>
     <FONT size=-1 color=#666666>                                                                                                                                                                                                                                                                                                                                                                                                                                          
               <? print $BUY_BIDS_PAGE_PAYPAL; ?>       </FONT>
               </TD>
               </TR>
               </TABLE>
   
   
   
    <?// <!----------------------- END CONTENT HERE ------------------------->  ?>
                                                 
     <? print $page_title_content_box_stop; ?>  